#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>

typedef int dataType;

typedef struct heap
{
	dataType* arr;
	int size;
	int capacity;
} heap;

void initHeap(heap*, dataType*, int);
void printHeap(heap*);
void heapPush(heap*, dataType);
void heapPop(heap*);
dataType heapTop(heap*);
int heapSize(heap*);
int heapEmpty(heap*);
void destroyHeap(heap*);